namespace Matrix.ServiceDiscovery.Enums
{
    /// <summary>
    /// 服务状态枚举
    /// </summary>
    public enum ServiceStatus
    {
        /// <summary>
        /// 未指定状态
        /// </summary>
        None = 0,

        /// <summary>
        /// 运行中
        /// </summary>
        Running = 1,

        /// <summary>
        /// 已停止
        /// </summary>
        Stopped = 2,

        /// <summary>
        /// 启动中
        /// </summary>
        Starting = 3,

        /// <summary>
        /// 停止中
        /// </summary>
        Stopping = 4,

        /// <summary>
        /// 错误状态
        /// </summary>
        Error = 5,

        /// <summary>
        /// 不健康状态
        /// </summary>
        Unhealthy = 6,

        /// <summary>
        /// 维护中
        /// </summary>
        Maintenance = 7,

        /// <summary>
        /// 已注册
        /// </summary>
        Registered = 8,

        /// <summary>
        /// 离线
        /// </summary>
        Offline = 9,

        /// <summary>
        /// 已禁用
        /// </summary>
        Disabled = 10,

        /// <summary>
        /// 未知状态
        /// </summary>
        Unknown = 99
    }
}